﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucCartDetail.ascx.cs"
    Inherits="SES.CMS.AdminCP.PageUC.ucCartDetail" %>
<style type="text/css">
    .tdTitle
    {
        height: 20px;
        background: none;
        width: 145px;
        margin-left: 5px;
        font-family: Times New Roman;
        font-size: 15px;
        color: #000;
        border-bottom: 1px #84C461 dotted;
    }
    .tdContent
    {
        border-bottom: 1px #84C461 dotted;
        color: Blue;
    }
</style>
<div style="margin-left: 10px; margin-right: 10px">
    <h3>
        Thông tin khách hàng</h3>
    <table width="100%">
        <tr class="trDetail">
            <td class="tdTitle">
                Mã đơn hàng
            </td>
            <td class="tdContent">
                <asp:Label class="lblCartDetail" ID="lblDonHangID" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tdTitle">
                Tên khách hàng
            </td>
            <td class="tdContent">
                <asp:Label class="lblCartDetail" ID="lblTenKhachHang" runat="server" Text=""></asp:Label>
            </td>
            <td class="tdTitle">
                Địa chỉ
            </td>
            <td class="tdContent">
                <asp:Label class="lblCartDetail" ID="lblDiaChi" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tdTitle">
                Số điện thoại
            </td>
            <td class="tdContent">
                <asp:Label class="lblCartDetail" ID="lblSoDienThoai" runat="server" Text=""></asp:Label>
            </td>
            <td class="tdTitle">
                Email
            </td>
            <td class="tdContent">
                <asp:Label class="lblCartDetail" ID="lblEmail" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tdTitle">
                Địa chỉ giao hàng
            </td>
            <td class="tdContent">
                <asp:Label class="lblCartDetail" ID="lblDiaChiGiaoHang" runat="server" Text=""></asp:Label>
            </td>
            <td class="tdTitle">
                Hình thức thanh toán
            </td>
            <td class="tdContent">
                <asp:Label class="lblCartDetail" ID="lblHTTT" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
        <td class="tdTitle">
            Ghi chú
        </td>
        <td class="tdContent">
            <asp:Label class="lblCartDetail" ID="lblGhiChu" runat="server" Text=""></asp:Label>
        </td>
        <td class="tdTitle">
            Tổng tiền
        </td>
        <td class="tdContent">
            <asp:Label class="lblCartDetail" ID="lblTongTien" runat="server" Text=""></asp:Label>
        </td>
        </tr>
        <tr>
        <td class="tdTitle">
            
        </td>
        <td class="tdContent">
           
        </td>
        <td class="tdTitle">
            Total money
        </td>
        <td class="tdContent">
            <asp:Label class="lblCartDetail" ID="lblTotalMoney" runat="server" Text=""></asp:Label>
        </td>
        </tr>
    </table>
    <br />
    <h3>
        Thông tin chi tiết đơn hàng</h3>
    <asp:GridView ID="GrChiTiet" runat="server" Width="100%" CellPadding="4" AllowPaging="True"
        DataKeyNames="GioHangID" Font-Names="Times New Roman" Font-Size="Medium" AutoGenerateColumns="False"
        EnableViewState="False" HorizontalAlign="Center" PageSize="20" ForeColor="#333333"
        GridLines="None">
        <RowStyle BorderColor="#2d2d2d" ForeColor="#333333" BackColor="#FFFBD6" />
        <Columns>
            <asp:BoundField DataField="GioHangID" HeaderText="ID" ItemStyle-Width="25px" SortExpression="DonHangID">
                <ItemStyle Width="25px"></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="Tên sản phẩm">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblngaydathang" runat="server" Text='<%# Eval("TenSanPham") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Số Lượng">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblngaydathang" runat="server" Text='<%# Eval("SoLuong") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Đơn Giá">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblngaydathang" runat="server" Text='<%# Bind("DonGia","{0:##,##0 VNĐ}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="Price">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblngaydathang" runat="server" Text='<%# Bind("Price","{0:0.## USD}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Giảm giá">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblGiamGia" runat="server" Text='<%# Bind("GiamGia","{0:0} %") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ngày đặt hàng">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblngaydathang" runat="server" Text='<%# Bind("NgayDatHang","{0:d}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ngày giao hàng">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblngaygiaohang" runat="server" Text='<%# Bind("NgayGiaoHang","{0:d}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Thành Tiền">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblngaygiaohang1" runat="server" Text='<%# Bind("ThanhTien","{0:##,##0 VNĐ}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Total money">
                <ItemTemplate>
                    <asp:Label Style="margin-left: 2px;" ID="lblngaygiaohang1" runat="server" Text='<%# Bind("TotalMoney","{0:##,## USD}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle BackColor="#C02738" Height="25px" Font-Bold="True" ForeColor="White" />
        <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
        <PagerStyle HorizontalAlign="Center" BackColor="#FFCC66" ForeColor="#333333" />
        <RowStyle HorizontalAlign="Center" ForeColor="#000066" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
</div>
